package day05;

/*
 * Author: JacksonCoder
 * FileName: EncapsulationDemo
 * Version: 1.0.0
 * Date: 2025/4/12
 */

class User{
    private String name;

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }
}

public class EncapsulationDemo {

    public static void main(String[] args) {
        User user = new User();
        user.setName("Nexora");
        System.out.println(user.getName());
    }

}
